package com.itheima.user.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.lang.Long;
import java.util.Date;
import java.lang.Object;
import java.lang.String;
import java.lang.Integer;

/**
 * 用户表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "user")
public class UserEntity {

    /**
     * 用户ID
     */
@Column(value = "id")
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 用户名
     */
    @Column(value = "username")
    private String username;

    /**
     * 密码
     */
    @Column(value = "password")
    private String password;

    /**
     * 手机号
     */
    @Column(value = "phone")
    private String phone;

    /**
     * 邮箱
     */
    @Column(value = "email")
    private String email;

    /**
     * 用户类型
     */
    @Column(value = "user_type")
    private Object userType;

    /**
     * 真实姓名
     */
    @Column(value = "real_name")
    private String realName;

    /**
     * 身份证号
     */
    @Column(value = "id_card")
    private String idCard;

    /**
     * 头像URL
     */
    @Column(value = "avatar")
    private String avatar;

    /**
     * 状态(0:禁用,1:启用)
     */
    @Column(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(value = "update_time")
    private Date updateTime;
    @Column(isLogicDelete = true)
    private boolean isDelete;
    @Column(value ="dept_id")
    private Long deptId;


}
